<% include ../pageHeader %>

<form name="register" method="post" action="?act=save">
    <input name="_csrf" type="hidden" value="<%- ctx.csrf %>" />
    <table cellspacing="1" width="500px" align="center" class="formbox">
        <tr>
            <td class="formbox-title" colspan="2"><%= __('reg_title') %></td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __('username') %>:</td>
            <td class="formbox-content">
                <input name="username" type="text" id="username" size="24" maxlength="24" class="text"/>
                <font color="#FF0000">&nbsp;*</font> <%= __('username_req') %></td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __('password') %>:</td>
            <td class="formbox-content">
                <input name="password" type="password" id="password" size="16" maxlength="16" class="text"/>
                &nbsp;<font color="#FF0000">*</font> <%= __('password_req') %></td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __('repassword') %>:</td>
            <td class="formbox-content">
                <input name="repassword" type="password" id="repassword" size="16"  maxlength="16" class="text"/>
                &nbsp;<font color="#FF0000">*</font> <%= __('repassword_req') %></td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __('gender') %>:</td>
            <td class="formbox-content">
                <input name="gender" type="radio" value="0" checked="checked"/><%= __('gender0') %>
                <input name="gender" type="radio" value="1"/><%= __('gender1') %>
                <input name="gender" type="radio" value="2"/><%= __('gender2') %>
            </td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __('email') %>:</td>
            <td class="formbox-content">
                <input name="email" size="30" maxlength="50" type="text" id="email"
                                               class="text"/>
                <input type="checkbox" name="hideemail" value="true" checked="checked"/> <%= __('email_hide') %></td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __('homepage') %>:</td>
            <td class="formbox-content">
                <input name="homepage" size="30" maxlength="50" type="text" id="homepage" class="text"/>
            </td>
        </tr>
        <% if(theCache.settings["enableSecurityCode"] == 1){ %>
            <tr>
                <td class="formbox-rowheader"><%= __('scode') %>:</td>
                <td class="formbox-content">
                    <input name="scode" size="4" maxlength="4" type="text" id="scode" class="text"/>
                    <img src="scode.asp" align="absmiddle"/>&nbsp;<font color="#FF0000">*</font> <%= __('scode_req') %>
                </td>
            </tr>
        <% } %>
        <tr>
            <td class="formbox-content"></td>
            <td class="formbox-content">
                <input name="Submit" type="submit" id="Submit" value=" <%= __('submit') %> " class="button"/> &nbsp;
                <input name="Reset" type="reset" id="Reset" value=" <%= __('reset') %> " class="button"/>
            </td>
        </tr>
    </table>
</form>

<% include ../pageFooter %>
